home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: netcom.com!smryan
- From: smryan@netcom.com (@#$%!?!)
- Subject: Re: Q: C pipe function
- Message-ID: <smryanDq1IzB.D01@netcom.com>
- Organization: The Programmer formerly known as S M Ryan
- X-Newsreader: TIN [version 1.2 PL1]
- References: <3174FEA6.41C6@wight.hursley.ibm.com>
- Date: Thu, 18 Apr 1996 04:25:59 GMT
- Sender: smryan@netcom12.netcom.com
-
- : Is there a function accessible from C that allows you to write to the
- : stdin of a command and read from the stdout of that command? eg :-
-
- Already defined? No. But it shouldn't be that difficult to write one in Unix:
- make two pipes, fork, close respective ends and reassign to descriptors
- 0 and 1, and then exec.
- --
- The Queen who loves, the Queen of life, | smryan@netcom.com PO Box 1563
- the Queen who straits, the Queen of strife;| Cupertino, California
- with gasp of death or gift of breath | (xxx)xxx-xxxx 95015
- she brings the choice of birth or knife. | I don't use no smileys
-